package notice;

import java.util.HashSet;
import java.util.Set;

import javax.ws.rs.core.Application;

import domain.Noticia;

import repositories.Noticias;
import resources.Resource;

public class NoticeApplication extends Application {
	private Set<Object> singletons = new HashSet<Object>();
	private Set<Class<?>> classes = new HashSet<Class<?>>();

	// Loads all resources that are implemented in the application
	// so that they can be found by RESTEasy. In this case, ListResource is a
	// class we have implemented that represents the resource "/lists" in our
	// API.
	public NoticeApplication() {
		singletons.add(new Resource());
		classes.add(Resource.class);
		classes.add(Noticia.class);
		classes.add(Noticias.class);
	}

	public Set<Class<?>> getClasses() {
		return classes;
	}

	public Set<Object> getSingletons() {
		return singletons;
	}
}
